package problem4;

import java.util.Scanner;
public class TestDrinks {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String brand;
        double alcoholicity,sugarcontent,milkcontent,juicecontent;
        brand = input.nextLine();
        alcoholicity = input.nextDouble();
        input.nextLine();
        Liquor liquor = new Liquor(brand,alcoholicity);
        brand = input.nextLine();
        sugarcontent = input.nextDouble();
        milkcontent = input.nextDouble();
        input.nextLine();
        Milktea milktea = new Milktea(brand,sugarcontent,milkcontent);
        brand = input.nextLine();
        sugarcontent = input.nextDouble();
        juicecontent = input.nextDouble();
        Fruitjuice fruitjuice = new Fruitjuice(brand,sugarcontent,juicecontent);
        showDrinksInfo(liquor);
        showDrinksInfo(milktea);
        showDrinksInfo(fruitjuice);
    }
    public static void showDrinksInfo(Drinks drinks){
        System.out.println(drinks.advertisement());
        System.out.println(drinks.component());
    }
}
//This product contains alcohol.
//alcoholicity: 12.0%
//This product contains sugar and milk.
//sugarcontent: 25.0 gram milkcontent: 20.0%
//This product contains sugar and juice.
//sugarcontent: 30.0 gram juicecontent: 30.0%